package com.itheima05;

/**
 * @author Xiao
 * @date 2021/7/9
 */
public class Dog extends Animal {
    /**
     *      猫和狗
     *          子类狗
     */
    public void watchhouse () {
        System.out.println(super.getAge() + "岁的" + super.getName() + "在看门");
    }
    public Dog () {}
    public Dog (String name,int age) {
        super(name,age);
    }
}
